home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / antipolix-2.0 / creation.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-22  |  767 b   |  41 lines

  1. #ifndef _CREATION_
  2. #define _CREATION_
  3.  
  4. #define MAX_LEVELS 15
  5. #define NB_TYPES 5
  6. #define NB_CARACT 4
  7.  
  8. typedef struct
  9. {
  10.     int Couleur;  /* proprietaire de la piece (-2 si case vide) */
  11.     int Type;     /* armee, hovercraft, etc... */
  12.     int Caract;   /* chef, invisible, etc... */
  13. /* int Energie;  au cas ou... */
  14. } Piece;
  15.  
  16.  
  17.  
  18. typedef struct
  19. {
  20.     int Taille;    /* nombre de cases d'un cote du carre */
  21.     int Caract;    /* pour donner des particularites a chaque plateau... */
  22.     Piece **Case;  /* quelle piece sur quelle case */
  23. } Plateau;
  24.  
  25.  
  26. typedef struct
  27. {
  28.     int NbPlateaux;
  29.     Plateau *P;
  30. } Univers;
  31.  
  32.  
  33. void CreateUniverse(Univers *U, int NbNiveaux, int Taille);
  34.  
  35. void CopyUniverse(Univers *Destination, Univers *Source);
  36.  
  37. void TransformUniverse(Univers *U, int joueur);
  38.  
  39.  
  40. #endif
  41.